﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Treinamento2015_01Core.Models;

namespace Treinamento2015_01Core.Repository
{
    public class StockRepository : BaseRepository<Stock>
    {
        internal Stock FindByProduct(Product product)
        {
            return _Repository.Where(stock => stock.Product.Id == product.Id).FirstOrDefault();
        }
    }
}
